package com.oa.store.service.oa.leave;

import java.util.List;
import java.util.Map;

import org.activiti.engine.runtime.ProcessInstance;

import com.oa.store.model.oa.Leave;
import com.oa.store.util.Page;

public interface LeaveWorkflowService {

	/**
	 * 启动流程
	 * 
	 * @param entity
	 */
	public ProcessInstance startWorkflow(Leave entity, Map<String, Object> variables);

	/**
	 * 查询待办任务
	 * @param userId 用户ID
	 */
	public List<Leave> findTodoTasks(String userId, Page<Leave> page, int[] pageParams);

}
